package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IRoleService {

    PageInfo query(QueryObject qo);
    void save(Role role, Long[] permissionIds);
    void update(Role role, Long[] permissionIds);
    void delete(Long id);
    Role get(Long id);
    List<Role> list();

    List<String> selectAllRoles();

    List<String> queryRolesByEmployeeId(Long id);
}
